html, body {
    margin: 0;
    padding: 0;
    font: 14px/1.5em simsun;
    overflow: hidden;
}

#canvas {
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 9;
    border: 2px dashed #ccc;
    padding: 10px;
    background: #fff;
}

.transparent {
    filter: alpha(opacity=50);
    -moz-opacity: 0.5;
    -khtml-opacity: 0.5;
}

.box {
    width: 200px;
    height: 100px;
    cursor: move;
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 99;
}

.box .bg {
    width: 100%;
    height: 100%;
    background-color: orange;
}

.box .coor {
    width: 10px;
    height: 10px;
    overflow: hidden;
    cursor: se-resize;
    position: absolute;
    right: 0;
    bottom: 0;
    background-color: red;
}

.box .content {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 99;
    text-align: center;
    font: bold 14px/1.5em simsun;
}

#toolbar {
    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 88;
    display: flex;
}

#toolbar button {
    margin-left: 10px;
}